<?php
declare (strict_types = 1);

namespace app\mini\controller;

use app\admin\model\Setting;
use app\admin\model\Slideshow;
use think\response\Json;
use app\mini\model\SysModelMini;
use app\mini\model\ActivityCustomerMiniModel;
use app\crm\model\Customer as CustomerModel;
use app\mini\model\PersonCustomer;
use app\crm\model\Setting as SettingModel;
use app\mini\model\PersonCase as PersonCaseModel;
use app\crm\model\ReturnVist;
use app\admin\model\File as FileModel;

use think\facade\Db;
/**
 * Class Index
 * @package app\mini\controller
 * @author Mr.Liu Wuchen
 * @create 2021-07-02 10:42
 */
class ActivityCustomerMini extends Access
{
    public function getCard(){

        $request = $this->request->param();

        $model = new ActivityCustomerMiniModel();

        $data = $model->getCard($request);

        return resultArray(['error' => '领取成功', 'data' => $data]);

    }

    public function isGetCard(){

        $request = $this->request->param();

        $model = new ActivityCustomerMiniModel();

        $data = $model->isGetCard($request);

        return resultArray(['error' => '获取成功', 'data' => $data]);

    }

    public function downPointGoods(){

        $request = $this->request->param();

        $model = new ActivityCustomerMiniModel();

        $data = $model->downPointGoods($request);


        return resultArray(['error' => $data['error'], 'data' => $data]);

    }

    public function downServiceCard(){

        $request = $this->request->param();

        $model = new ActivityCustomerMiniModel();

        $data = $model->downServiceCard($request);


        return resultArray(['error' => $data['error'], 'data' => $data]);

    }

}